package com.lxg.service.userService;

import com.lxg.pojo.Books;
import com.lxg.pojo.Problem;

import java.util.ArrayList;

public interface UserProblemService {

    /**
     * 添加一个问题
     * @param uid
     * @param name
     * @param page
     * @param body
     * @param phone
     * @return
     */
    public boolean addProblem(Integer uid,String name,String page,
                              String body,String phone);

    public ArrayList<Problem> getAllProblems();

    ArrayList<Problem> getProblemsByUid(Integer uid);

    ArrayList<Problem> getProblemsByLikeName(String name);

    ArrayList<Problem> getProblemsByLikeBody(String body);
}
